import request from '@/utils/request'

export function getConfig() {
  return request({
    url: '/qywx/getConfig',
    method: 'get'
  })
}
export function getAuthorizeURL(tenantCode) {
  return request({
    url: '/qywx/getWeChatAuthorizationAddress/' + tenantCode,
    method: 'get'
  })
}

export function wxlogin(data) {
  return request({
    url: '/qywx/wxLogin',
    method: 'post',
    params: data
  })
}
